package com.openbravo.pos.payment;

import java.awt.Component;
import java.awt.ComponentOrientation;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.Window;

public class JPaymentSelectReceipt extends JPaymentSelect
{
  protected JPaymentSelectReceipt(Frame paramFrame, boolean paramBoolean, ComponentOrientation paramComponentOrientation)
  {
    super(paramFrame, paramBoolean, paramComponentOrientation);
  }

  protected JPaymentSelectReceipt(Dialog paramDialog, boolean paramBoolean, ComponentOrientation paramComponentOrientation)
  {
    super(paramDialog, paramBoolean, paramComponentOrientation);
  }

  public static JPaymentSelect getDialog(Component paramComponent)
  {
    Window localWindow = getWindow(paramComponent);
    if ((localWindow instanceof Frame))
      return new JPaymentSelectReceipt((Frame)localWindow, true, paramComponent.getComponentOrientation());
    return new JPaymentSelectReceipt((Dialog)localWindow, true, paramComponent.getComponentOrientation());
  }

  protected void addTabs()
  {
    addTabPayment(new JPaymentSelect.JPaymentCashCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentChequeCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentPaperCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentMagcardCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentFreeCreator( ));
    addTabPayment(new JPaymentSelect.JPaymentDebtCreator( ));
    setHeaderVisible(true);
  }

  protected void setStatusPanel(boolean paramBoolean1, boolean paramBoolean2)
  {
    setAddEnabled((paramBoolean1) && (!paramBoolean2));
    setOKEnabled(paramBoolean2);
  }

  protected PaymentInfo getDefaultPayment(double paramDouble)
  {
    return new PaymentInfoCash(paramDouble, paramDouble);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.payment.JPaymentSelectReceipt
 * JD-Core Version:    0.6.0
 */